TARGET=Gate
INSTALL_DIR=../../../install/Gate

INC=-I../../../public/util
LIBS=-L../../../public/util/lib -lutil -llog4cplus -lboost_filesystem

CFLAGS:=-O3 -m64 -g -std=c++11 $(INC)
CPPFLAGS:=$(CFLAGS)

SRC:=$(shell echo *.cpp)
OBJS:=$(patsubst %.cpp, %.o, $(SRC))
OBJS:=$(patsubst %.cc, %.o, $(OBJS))

all:$(TARGET)

$(TARGET): $(OBJS)
	$(CXX) $^ -o $@ $(LIBS) 


.PHONY:clean install

clean:
	rm -rf $(TARGET)
	rm -rf $(OBJS)

install:
	install -d $(INSTALL_DIR)
	install $(TARGET) $(INSTALL_DIR)
